#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 2e5+10;
#define INF 0x3f3f3f3f;
typedef long long int ll;
#define sd(n) scanf("%d",&n) 
#define sld(n) scanf("%lld",&n)
#define pd(n) printf("%d", (n))
#define pld(n) printf("%lld", n)

//----------------------------------------------------------------------------//
int n,m;
int main()
{
	sd(m),sd(n);

	for(int i=m;i<=n;i++)
	{
		pd(i);
		printf(",");
		if(i%2!=0&&i%3!=0)
		{
			printf("-\n");
		}
		if(i%2==0&&i%3!=0)
		{
			int t=i/2;
			printf("2x%d\n",t);
		}
		if(i%3==0&&i%2!=0)
		{
			int t=i/3;
			printf("3x%d\n",t);
		}
		if(i%2==0&&i%3==0)
		{
			int t=i/2;
			printf("2x%d,",t);
			t=i/3;
			printf("3x%d\n",t);
		}
	}

	return 0;
}